package com.lninl.repository;

import com.lninl.model.Tag;
import org.springframework.dao.DataAccessException;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.Collection;

/**
 * @author qinains
 */
public interface TagRepository extends PagingAndSortingRepository<Tag, Long> {
    Collection<Tag> findByStatus(Integer status) throws DataAccessException;

    Tag findById(Long id) throws DataAccessException;

    Tag findByName(String name) throws DataAccessException;

}
